package com.hzhr.iot.collect.service.helper;

import com.hzhr.iot.collect.Global;
import com.hzhr.iot.core.exception.ServiceException;
import com.hzhr.iot.device.sdk.model.pressureMonitor_code.PressureMonitor_CodePutModel;
import com.hzhr.iot.device.sdk.service.Device_PressureMonitor_CodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class Device_PressureMonitor_CodeServiceHelper {
    @Autowired
    Device_PressureMonitor_CodeService device_pressureMonitor_codeService;
    @Autowired
    Global global;

    public void putByPressureMonitorId(int id, PressureMonitor_CodePutModel model) throws ServiceException {
        Map<String, Object> query = new HashMap<>();
        device_pressureMonitor_codeService.putByPressureMonitorId(global.initGlobalHeader(), id, query, model);
    }

}
